<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组</title>
	<script>
		
		// city1 = "广州";
		// city2 = "北京";
		// city3 = "东莞";

		city = ["广州","北京","东莞",,,,,,'珠海'];

		city[0] = "xbs";

		city[111] ="学并思";

		// 0 1 2
		// 下标 索引 键
		
		// document.write(city[111]);
		
		arr = [546,56,5,[56,56,55,65,6],534,534];

		// document.write(arr[3][2]);
		// 
		
		arr =[565,6,3,3465];


		sum = 0;

		for (var i = 0; i <= 3; i++) {
			sum +=arr[i];
		}

		for(var i in arr){
			sum +=arr[i];
		}

		document.write(sum);





		arr = [45645,45,64,56,45,645];


		function getMax(arr) {
			
		}

		getMax(arr);


		arr = [34,5,7,56,9,645];


		function ou(arr) {
			
			
		}

		ou(arr);









	</script>
</head>
<body>
	
</body>
</html>